//
//  UUPushManager.h
//  UUCharterSupplier
//
//  Created by ZhangAo on 03/02/2018.
//  Copyright © 2018 UUCharter. All rights reserved.
//

#import <UUFoundation/DKBaseManager.h>

@interface UUPushManager : DKBaseManager

@property (nonatomic, copy, readonly) NSString *tokenString;

/**
 *  初始化服务  AppDelegate 初始化调用
 */
- (instancetype)initWithLaunchOptions:(NSDictionary *)launchOptions;

/**
 *  注册 Push
 */
- (void)registerPush;

/**
 *  注销 Push
 */
- (void)unregisterNotifications;

/**
 *  注册设备
 */
- (void)registerDeviceWithToken:(NSData *)token;

/**
 *  收到远程通知
 */
- (void)didReceiveRemoteNotification:(NSDictionary *)userInfo;

- (void)didReceiveRemoteNotification:(NSDictionary *)userInfo fetchCompletionHandler:(void (^)(UIBackgroundFetchResult))completionHandler;

@end
